package com.aznest.service;

import com.aznest.dto.TypeWithDateDTO;
import com.aznest.entity.Type;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface TypeService {
    void add(Type type);

    void deleteById(Integer id);

    void deleteBatch(List<Integer> ids);

    void updateById(Type type);

    Type selectById(Integer id);

    List<Type> selectByHotelId(Integer id);

    List<Type> selectAll(Type type);

    PageInfo<Type> selectPage(Type type, Integer pageNum, Integer pageSize);

    List<Type> searchTypeWithDate(TypeWithDateDTO typeWithDateDTO);
}
